<%--
  Created by IntelliJ IDEA.
  User: zyh
  Date: 2021/11/10
  Time: 20:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <table>
        <tr>
            <th>员工编号</th>
            <th>员工姓名</th>
            <th>员工性别</th>
            <th>员工工资</th>
            <th>员工密码</th>
            <th>员工部门</th>
            <th>员工出生日期</th>
        </tr>
        <c:forEach items="${empinfo.list}" var="e">
            <tr>
                <td>${e.eno}</td>
                <td>${e.ename}</td>
                <td>${e.esex}</td>
                <td>${e.salary}</td>
                <td>${e.pwd}</td>
                <td>${e.dno}</td>
                <td>${e.date}</td>
            </tr>
        </c:forEach>
        <tr>
            <td colspan="7">
                <a href="${pageContext.request.contextPath}/page?pageIndex=1">首页</a>
                <a href="${pageContext.request.contextPath}/page?pageIndex=${empinfo.pageNum-1}">上一页</a>
                <c:forEach items="${empinfo.navigatepageNums}" var="em">
                    <a href="${pageContext.request.contextPath}/page?pageIndex=${em}">${em}</a>
                </c:forEach>
                <a href="${pageContext.request.contextPath}/page?pageIndex=${empinfo.pageNum+1}">下一页</a>
                <a href="${pageContext.request.contextPath}/page?pageIndex=${empinfo.pages}">尾页</a>
            </td>
        </tr>
    </table>
</body>
</html>
